package Fish;
class Fish{
	int weight;
}
class Lake{
	Fish fish;
	void setFish(Fish s){
		fish = s;
	}
	void eat(int n){
		fish.weight = fish.weight + n;
	}
}
public class FishandLake {
	public static void main(String[] args) {
		Fish liyu = new Fish();
		System.out.println(liyu.weight);
		Lake taihu  = new Lake();
		Lake xihu = new Lake();
		Lake miyunshuiku = new Lake();
		taihu.setFish(liyu);
		taihu.eat(15);
		System.out.println(liyu.weight);
		System.out.println(taihu.fish.weight);
		System.out.println(xihu.fish.weight);
		System.out.println(miyunshuiku.fish.weight);
	}

}
